package unilearn.vo;

public class PersonRole implements java.io.Serializable {

    private Integer id;
    private int personId;
    private int roleId;

    public PersonRole() {
        id = -1;
        personId = -1;
        roleId = -1;
    }

    public PersonRole(int personId, int roleId) {
        this.personId = personId;
        this.roleId = roleId;
    }

    public Integer getId() {
        return this.id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public int getPersonId() {
        return this.personId;
    }

    public void setPersonId(int personId) {
        this.personId = personId;
    }

    public int getRoleId() {
        return this.roleId;
    }

    public void setRoleId(int roleId) {
        this.roleId = roleId;
    }

    @Override
    public String toString() {
        return "PersonRole{" + "id=" + id + ", personId=" + personId + ", roleId=" + roleId + '}';
    }
}
